MailPoet\Newsletter\NewslettersRepository S

Total Complexity 43
Dependencies 16
Dependents 44
Total lines 563
Lines of code 437
Logical lines of code 102
Comment lines 61
Methods 25
Properties 1

Methods 25

Method Rating Maintainability Complexity Lines of code
getArchives()
A
43 7 49
getAnalytics()
S
43 3 49
bulkRestore()
S
48 3 36
bulkTrash()
S
48 3 35
getStandardNewsletterListWithMultipleStatuses()
S
53 3 23
getNotificationHistoryItems()
S
56 3 18
findActiveByTypeAndGroup()
S
56 2 18
getStandardNewsletterSentCount()
S
58 2 16
getScheduledStandardEmailsAndActiveAutomaticEmails()
S
53 1 25
findSendingNotificationHistoryWithoutPausedOrInvalidTask()
S
56 1 19
getCountOfActiveAutomaticEmailsForEvent()
S
58 1 16
getStandardNewsletterList()
S
61 1 14
findActiveByTypes()
S
61 1 14
findDraftByTypes()
S
61 1 14
getCountForStatusAndTypes()
S
62 1 13
getWpPostIds()
S
63 1 12
deleteByIds()
S
64 1 11
prefetchOptions()
S
64 1 11
prefetchSegments()
S
64 1 11
getEntityClassName()
S
82 1 3
getCountOfEmailsWithWPPost()
S
68 1 8
getCorruptNewsletters()
S
78 1 3
setAsCorrupt()
S
74 1 5
fetchChildrenIds()
S
65 1 10
__construct()
S
76 1 4